home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / ubuntu / ndiswrapper / mkstubs.sh < prev   
Encoding:
Linux/UNIX/POSIX Shell Script  |  2009-09-09  |  312 b   |  13 lines

  1. #! /bin/sh
  2.  
  3. for file in "$@"; do
  4.     echo
  5.     echo "# automatically generated from $file"
  6.     sed -n \
  7.         -e 's/.*WIN_FUNC(\([^\,]\+\) *\, *\([0-9]\+\)).*/\
  8.            win2lin(\1, \2)/p'   \
  9.         -e 's/.*WIN_FUNC_PTR(\([^\,]\+\) *\, *\([0-9]\+\)).*/\
  10.            win2lin(\1, \2)/p'   \
  11.        $file | sed -e 's/[ \t    ]\+//' | sort -u; \
  12. done
  13.